#define _CRT_SECURE_NO_WARNINGS 1
#include "Stack.h"
#include "Queue.h"

void TestQueue2()
{
	Queue qu;
	QueueInit(&qu);
	QueuePush(&qu, 1);
	QueuePush(&qu, 2);
	QueuePush(&qu, 3);
	QueuePush(&qu, 4);
	QueuePush(&qu, 5);
	QueuePush(&qu, 6);
	QueuePush(&qu, 7);
	QueuePush(&qu, 8);
	QueuePush(&qu, 9);
	QueuePush(&qu, 10);
	QueuePush(&qu, 11);
	printf("%d\n", QueueSize(&qu));
	while (!QueueEmpty(&qu))
	{
		printf("%d ", QueueFront(&qu));
		QueuePop(&qu);
	}
	printf("\n");
	QueueDestroy(&qu);
}

void TestStack1()
{
	ST st;
	STInit(&st);
	STPush(&st, 1);
	STPop(&st);
	STPush(&st, 2);
	STPop(&st);
	STPush(&st, 3);
	STPop(&st);
	STPush(&st, 4);
	STPop(&st);
	STPush(&st, 5);
	STPop(&st);
	STPush(&st, 6);
	STPop(&st);
	STPush(&st, 7);
	STPop(&st);
	STPush(&st, 8);
	STPop(&st);
	STPush(&st, 9);
	STPop(&st);
	//STPop(&st);
	printf("%d\n", STSize(&st));
	while (!STEmpty(&st))
	{
		printf("%d ", STTop(&st));
		STPop(&st);
	}
	STDestroy(&st);
}

int main()
{
	//TestStack1();
	TestQueue2();
	return 0;
}